/*
 * appl_to_mac.h
 * Created on January 12, 2006; 7:03 PM
 * by vramadurai
 */
#ifndef _APPL_TO_MAC_H_
#define _APPL_TO_MAC_H_

#include "wext_module.h"

#define MAX_APP_DATA        IW_SCAN_MAX_DATA

#define RESP_MAC_OK()               send_ctrl_to_arm(0,   NULL, 0)
#define RESP_MAC_ERR(err)           send_ctrl_to_arm(err, NULL, 0)
#define RESP_MAC(code, data, len)   send_ctrl_to_arm(code, data, len)

int      send_data_to_arm(unsigned char *data, unsigned short  data_len);
int receive_data_from_arm(unsigned char *data, unsigned short *data_len);

int      send_ctrl_to_arm(int32_t   res, uint8_t *data, uint32_t  len) ;
int receive_ctrl_from_arm(uint32_t *req, uint8_t *data, uint32_t *len) ;

int    send_event_to_arm(uint32_t event, uint8_t *data, uint32_t  len) ;

int init_mac_to_appl();

void dump_mem(char *name, unsigned char *data, int len) ;

#endif
